package com.klw.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.klw.common.annotation.Excel;
import com.klw.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 预警结果对象 klw_warning_results
 *
 * @author klw
 * @date 2025-09-13
 */
public class KlwWarningResults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 结果ID */
    private Long warningId;

    /** 学号 */
    @Excel(name = "学号")
    private Long studentId;

    /** 学期 */
    @Excel(name = "学期")
    private Long semesterId;

    /** 预警等级(0无预警 1一级预警 2 二级预警 3三级预警) */
    @Excel(name = "预警等级(0无预警 1一级预警 2 二级预警 3三级预警)")
    private Integer warningLevel;

    /** 模型置信度 */
    @Excel(name = "模型置信度")
    private BigDecimal availablePercent;

    public void setWarningId(Long warningId)
    {
        this.warningId = warningId;
    }

    public Long getWarningId()
    {
        return warningId;
    }

    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }

    public void setSemesterId(Long semesterId)
    {
        this.semesterId = semesterId;
    }

    public Long getSemesterId()
    {
        return semesterId;
    }

    public void setWarningLevel(Integer warningLevel)
    {
        this.warningLevel = warningLevel;
    }

    public Integer getWarningLevel()
    {
        return warningLevel;
    }

    public BigDecimal getAvailablePercent() {
        return availablePercent;
    }

    public void setAvailablePercent(BigDecimal availablePercent) {
        this.availablePercent = availablePercent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("warningId", getWarningId())
                .append("studentId", getStudentId())
                .append("semesterId", getSemesterId())
                .append("warningLevel", getWarningLevel())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("availablePercent",getAvailablePercent())
                .toString();
    }
}
